import count from "./js/count";
import sum from "./js/sum";
// import 'core-js' //全部引入
import 'core-js/es/promise'
import './css/index.css'
import './less/index.less'
import './sass/index.scss'
import './css/iconfont.css'

console.log(count(2, 1));
console.log(sum(1, 2, 3, 4));

//JS默认不能开启热模块替换
if (module.hot) {
    module.hot.accept("./js/count"); //在count.js变化的时候热模块替换
}

new Promise((resolve) => {
    setTimeout(() => {
        resolve();
    }, 1000);
});

const arr = [1, 2, 3, 4];
console.log(arr.includes(1));